<!doctype html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<title>
			添加菜品
		</title>
		<script src="{{__PUBLIC__}}/jquery.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="{{__PUBLIC__}}/hdjs/hdjs.min.js" type="text/javascript" charset="utf-8"></script>
		<link rel="stylesheet" type="text/css" href="{{__PUBLIC__}}/hdjs/hdjs.css"/>
		<link rel="stylesheet" href="public/kindeditor/themes/default/default.css" />
		<script src="public/kindeditor/kindeditor.js"></script>
		<script src="public/kindeditor/lang/zh_CN.js"></script>
		<script src="{{__PUBLIC__}}/js/common.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=WcqLYXBH2tHLhYNfPNpZCD4s"></script>
		<script type="text/javascript" src="public/js/map.js"></script>
		<script type="text/javascript">var root = "{{__ROOT__}}";</script>
	</head>
	<body>
		<form action="" method="post">
			<table class="hd-table hd-table-form hd-form">
				<thead>
					<tr>
						<td colspan="2">
							菜谱
						</td>
					</tr>
				</thead>
				<tbody>
					<tr>
						<th>
							名称
						</th>
						<td>
							<input type="text" name="name" required=""/>
						</td>
					</tr>
					<tr>
						<th>
							分类
						</th>
						<td>
							<select name="category_id">
								{{foreach from="$category" key="$k" value="$v"}}
								<option value="{{$v['id']}}">
									{{$v['name']}}
								</option>
								{{endforeach}}
							</select>
						</td>
					</tr>
					<tr>
						<th>
							价格
						</th>
						<td>
							<input type="text" name="gprice" required=""/>元
						</td>
					</tr>
					<tr>
						<th>
							图片
						</th>
						<td>
							<img src="" alt=""  style="width:80px;"/>
							<input type="hidden" name="pic" value="" />
							<button type="button" class="selectImage">
								选择图片
							</button>
						</td>
					</tr>
				</tbody>
				<thead>
					<tr>
						<td colspan="2">
							<input type="submit" value="保存"/>
						</td>
					</tr>
				</thead>
			</table>
		</form>
	</body>
</html>